//
//  UILabel+Multiline.swift
//  HuaYun
//
//  Created by enghou on 2018/6/28.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

import UIKit

extension UILabel{
    
    var contentSize: CGSize{
        get{
            guard self.text != nil else {
                return CGSize.zero
            }
            return self.text!.size(with: self.font)
        }
    }
    
}
